extends layout
block header
	script(src="/js/admin/app.js")
	script(src="/js/admin/controller.js")
	link(rel="stylesheet",href="/css/admin/index.css")
block content
	.container
		header
			h1.page-header 
				| 后台管理
				| 
				button.btn.btn-danger(ng-if="login" ng-click="logout()" cloak) 退出
		ul.nav.nav-tabs(ng-if="login")
			li(role='presentation', ng-class="{ active:'articleList'=== currentType }")
				a(ui-sref='articleList', ng-click="currentType='articleList';") 文章
			li(role='presentation', ng-class="{ active:'categoryList'=== currentType }")
				a(ui-sref='categoryList', ng-click="currentType='categoryList';") 栏目
		div(ui-view="main")